package com.sunny.wordstudy;

import android.content.Context;
import com.google.tts.TTS;
import com.google.tts.TTS.InitListener;
import java.util.Locale;

public final class bl
  implements bk
{
  private TTS a = new TTS(paramContext, this.c, true);
  private Locale b;
  private TTS.InitListener c = new bm(this);

  public bl(Context paramContext, Locale paramLocale)
  {
    this.b = paramLocale;
  }

  public final int a(String paramString)
  {
    String str = paramString.replaceAll("\\<br\\>", ". ").replaceAll("\\<.*?>", "").replaceAll("\\[.*?\\]", "").replaceAll("\\[.*?\\]", "").replaceAll("&.*?;", "");
    this.a.setLanguage(this.b.getLanguage());
    this.a.speak(str, 0, null);
    return 0;
  }

  public final void a()
  {
    this.a.shutdown();
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.bl
 * JD-Core Version:    0.5.3
 */